<h1>Docker start/stop/restart 命令</h1>
<p><strong>docker start</strong> :启动一个或多个已经被停止的容器</p>
<p><strong>docker stop</strong> :停止一个运行中的容器</p>
<p><strong>docker restart</strong> :重启容器</p>
<h3>语法</h3>
<pre><code class="language-Docker">docker start [OPTIONS] CONTAINER [CONTAINER...]</code></pre>
<pre><code class="language-Docker">docker stop [OPTIONS] CONTAINER [CONTAINER...]</code></pre>
<pre><code class="language-Docker">docker restart [OPTIONS] CONTAINER [CONTAINER...]</code></pre>
<h3>实例</h3>
<p>启动已被停止的容器myrunoob</p>
<pre><code class="language-Docker">docker start myrunoob</code></pre>
<p>停止运行中的容器myrunoob</p>
<pre><code class="language-Docker">docker stop myrunoob</code></pre>
<p>重启容器myrunoob</p>
<pre><code class="language-Docker">docker restart myrunoob</code></pre>
